package com.liezh.strategy;

/**
 * @author liezh
 * @date 2020-7-20
 */
public class ShareContext {
    private String type;
    private ShareStrategy shareStrategy;

    public ShareContext(String type, ShareStrategy shareStrategy) {
        this.type = type;
        this.shareStrategy = shareStrategy;
    }

    public ShareStrategy getStrategy() {
        return shareStrategy;
    }

    public boolean options(String type) {
        return this.type.equals(type);
    }

}
